package com.gisuni.sddc.platformManager.service;

import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import com.gisuni.sddc.platformManager.dao.AttachmentDao;
import com.gisuni.sddc.platformManager.model.Attachment;

@IocBean
public class AttachmentService {
  
	private Log log=Logs.getLog(AttachmentService.class);
	
	@Inject
	private AttachmentDao attachmentDao;

	public void addAttachment(Attachment attachment) {
		attachmentDao.addAttachment(attachment);
	}

	public boolean deleteAttachmentById(String id) {
		
		return attachmentDao.deleteAttachmentById(id);
	}

	public boolean updateAttachmentDownStatusById(String id, String status) {
		return attachmentDao.updateAttachmentDownStatusById(id,status);
	}
}
